def empDetailInfo(name, department='', phone='', email=''):
    if name and len(name) > 0:
        print(name + '的信息如下')
        print('部门: ' + department)
        print('电话号码：' + phone)
        print('电子邮箱：' + email)
    else:
        print('必须有姓名信息。')

emp_info1 = ['张山','管理','','zhangsan@163.com']        
empDetailInfo(*emp_info1)
print('-'*30)
emp_info2 = {'name':'李四', 'department':'财务', 'phone':'18711081108'}
empDetailInfo(**emp_info2)